package com.ruicar.afs.cloud.channel.online.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author mingzhi.li
 * @date 2020年5月25日10:18:20
 */
@Data
@TableName("channel_risk_info_temp")
@ApiModel(value = "渠道风控信息临时表")
public class ChannelRiskInfoTemp extends BaseEntity<ChannelRiskInfoTemp> {
    /**
     * 渠道ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long channelId;
    /**
     * 业务类型;新车;二手车
     */
    private String businessType;
    /**
     * 评级;A\B\C\D
     */
    private String channelGrade;
    /**
     * 车辆类型;乘用车、LVC、中卡、重卡
     */
    private String carType;
    /**
     * 保证金调整
     */
    private BigDecimal marginTune;
    /**
     * 保证金应收
     */
    private BigDecimal channelDeposit;
    /**
     * 保证金实收
     */
    private BigDecimal channelDepositPaidIn;
    /**
     * 优质等级
     */
    private String qualityGrade;
    /**
     * 优质开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String qualityStartDate;
    /**
     * 优质结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String qualityEndDate;
    /**
     * 授权区域是否生效
     */
    private String authRegionSwitch;
    /**
     * 授权车型是否生效
     */
    private String authVehicleTypeSwitch;
    /**
     * 区域经理
     */
    private String customerManager;
    /**
     * 账号最大数量
     */
    private Integer accountMaxNum;
}
